package basic.arch.component.lock.local;

import java.util.concurrent.locks.ReentrantLock;

import basic.arch.component.lock.config.CurrentLockSettings;

public class LocalLockResult {

    /**
     * 是否锁成功
     */
    private boolean localLockSuccess = false;
    
    /**
     * 获取本地锁时间
     */
    private long localLockTime;

    /**
     * 锁
     */
    private ReentrantLock lock;

    /**
     * 当前锁的配置
     */
    private CurrentLockSettings currentLockSettings;

    public boolean isLocalLockSuccess() {
        return localLockSuccess;
    }

    public void setLocalLockSuccess(boolean localLockSuccess) {
        this.localLockSuccess = localLockSuccess;
    }

    public ReentrantLock getLock() {
        return lock;
    }

    public void setLock(ReentrantLock lock) {
        this.lock = lock;
    }

    public CurrentLockSettings getCurrentLockSettings() {
        return currentLockSettings;
    }

    public void setCurrentLockSettings(CurrentLockSettings currentLockSettings) {
        this.currentLockSettings = currentLockSettings;
    }

    public long getLocalLockTime() {
        return localLockTime;
    }

    public void setLocalLockTime(long localLockTime) {
        this.localLockTime = localLockTime;
    }

}
